<template>
  <el-form-item
    v-if="!optionModel.optionItems && field.type.indexOf('upload') === -1"
    :label="i18nt('designer.setting.defaultValue')"
  >
    <el-input
      v-if="field.type.indexOf('textarea') !== -1"
      v-model="optionModel.defaultValue"
      type="textarea"
    />
    <el-input v-else v-model="optionModel.defaultValue" type="text" />
  </el-form-item>
</template>

<script>
import i18n from "Yan/utils/i18n";
import propertyMixin from "../propertyMixin";

export default {
  name: "defaultValue-editor",
  mixins: [i18n, propertyMixin],
  props: {
    designer: Object,
    optionModel: Object,
  },
};
</script>

<style scoped>
</style>
